	function pic1FinderOpen(){//
		var date = new Date(), year = date.getFullYear(), month = (date.getMonth()+1)>9?date.getMonth()+1:"0"+(date.getMonth()+1);
		var url = "/da/static/ckfinder/ckfinder.html?type=images&start=images:/cms/site/"+year+"/"+month+
			"/&action=js&func=pic1SelectAction&thumbFunc=pic1ThumbSelectAction&cb=pic1Callback&dts=0&sm=0";
		//windowOpen(url,"文件管理",1000,700);
		var url = "/da/a/shop/file/uploadlist?a="+'pic1';
		//top.$.jBox("iframe:"+url, {title: "文件管理", width: 400, height: 310, buttons:{'关闭': true},iframeScrolling :false});
		dialog("上传图片","iframe:"+url,"450px","200px","window");
	}
	function pic1SelectAction(fileUrl, data, allFiles){
		var url="", files=ckfinderAPI.getSelectedFiles();
		for(var i=0; i<files.length; i++){//
			url += files[i].getUrl();//
			if (i<files.length-1) url+="|";
		}//
		$("#pic1").val(url);//
		pic1Preview();
		//top.$.jBox.close();
	}
	function pic1ThumbSelectAction(fileUrl, data, allFiles){
		var url="", files=ckfinderAPI.getSelectedFiles();
		for(var i=0; i<files.length; i++){
			url += files[i].getThumbnailUrl();
			if (i<files.length-1) url+="|";
		}//
		$("#pic1").val(url);//
		pic1Preview();
		//top.$.jBox.close();
	}
	function pic1Callback(api){
		ckfinderAPI = api;
	}
	function pic1Del(obj){
		var url = $(obj).prev().attr("url");
		$("#pic1").val($("#pic1").val().replace("|"+url,"","").replace(url+"|","","").replace(url,"",""));
		pic1Preview(null);
	}
	function pic1DelAll(){
		$("#pic1").val("");
		pic1Preview(null);
	}
	function pic1Preview(name){
		var li ;
		$("#pic1Preview").children().remove();
		var name = $("#pic1").val();
		if (name !="" && name != null){//
			var url = name;
			//alert(url)
			li = "<li><img src=\""+url+"\" url=\""+url+"\" style=\"max-width:200px;max-height:200px;_height:200px;border:0;padding:3px;\">";//
			li += "&nbsp;&nbsp;<a href=\"javascript:\" onclick=\"pic1Del(this);\">×</a></li>";
			$("#pic1Preview").append(li);
		}
		
		if ($("#pic1Preview").text() == ""){
			$("#pic1Preview").html("<li style='list-style:none;padding-top:5px;'>无</li>");
		}
	}
	pic1Preview();
	
	function pic1say(name){
		$("#pic1").val(name);
		pic1Preview(name);
		$(".content").empty();
	    $("#floatBoxBg").hide();
	    $("#floatBox").hide();
	}
